package jude.java.money.spring;

import jude.java.money.service.GlobalService;
import jude.java.money.service.HeiService;
import jude.java.money.service.ScanService;

public class Services {

	private static GlobalService globalService;
	private static HeiService heiService;
	private static ScanService scanService;
	
	public static GlobalService getGlobalService() {
		if (globalService == null)
			globalService = ContextHolder.getBean("globalService");
		return globalService;
	}
	
	public static HeiService getHeiService() {
		if (heiService == null)
			heiService = ContextHolder.getBean("heiService");
		return heiService;
	}
	
	public static ScanService getScanService() {
		if (scanService == null)
			scanService = ContextHolder.getBean("scanService");
		return scanService;
	}
}
